package ggze.GGZEServer.home.enums;

public class StatusEnum {
    public enum SHOP {
        STATUS_START("0", "上架"),
        STATUS_BAND("1", "下架");
        private String value;
        private String label;

        SHOP(String label, String value) {
            this.label = label;
            this.value = value;
        }

        public static String getValues(String value) {
            SHOP[] businessModeEnums = values();
            for (SHOP businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            SHOP[] businessModeEnums = values();
            for (SHOP businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getLabel() {
            return this.label;
        }
    }
    public enum INDENT_STATUS {
        STATUS_START("0", "未付款"),
        STATUS_BAND("1", "已付款");
        private String value;
        private String label;

        INDENT_STATUS(String label, String value) {
            this.label = label;
            this.value = value;
        }

        public static String getValues(String value) {
            INDENT_STATUS[] businessModeEnums = values();
            for (INDENT_STATUS businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            INDENT_STATUS[] businessModeEnums = values();
            for (INDENT_STATUS businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getLabel() {
            return this.label;
        }
    }
    public enum INDENT_AFFIRM_STATUS {
        STATUS_START("0", "未确认"),
        STATUS_BAND("1", "已确认");
        private String value;
        private String label;

        INDENT_AFFIRM_STATUS(String label, String value) {
            this.label = label;
            this.value = value;
        }

        public static String getValues(String value) {
            INDENT_AFFIRM_STATUS[] businessModeEnums = values();
            for (INDENT_AFFIRM_STATUS businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            INDENT_AFFIRM_STATUS[] businessModeEnums = values();
            for (INDENT_AFFIRM_STATUS businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getLabel() {
            return this.label;
        }
    }
    public enum INDENT_MAIL_STATUS {
        STATUS_START("0", "未邮寄"),
        STATUS_PACK("1", "订单打包中"),
        STATUS_ING("2", "邮寄中"),
        STATUS_BAND("3", "已收款");
        private String value;
        private String label;

        INDENT_MAIL_STATUS(String label, String value) {
            this.label = label;
            this.value = value;
        }

        public static String getValues(String value) {
            INDENT_MAIL_STATUS[] businessModeEnums = values();
            for (INDENT_MAIL_STATUS businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            INDENT_MAIL_STATUS[] businessModeEnums = values();
            for (INDENT_MAIL_STATUS businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getLabel() {
            return this.label;
        }
    }
    public enum INDENT_QUEUE_STATUS {
        STATUS_START("0", "未排队"),
        STATUS_ING("1", "排队中"),
        STATUS_BAND("2", "完成");
        private String value;
        private String label;

        INDENT_QUEUE_STATUS(String label, String value) {
            this.label = label;
            this.value = value;
        }

        public static String getValues(String value) {
            INDENT_QUEUE_STATUS[] businessModeEnums = values();
            for (INDENT_QUEUE_STATUS businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            INDENT_QUEUE_STATUS[] businessModeEnums = values();
            for (INDENT_QUEUE_STATUS businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getLabel() {
            return this.label;
        }
    }
}
